import json

player_data={
    "1": {
        "choices": 30,
        "threshold": 15,
        "hit_damage": 30,
        "block_damage": 10,
        "pre_msg": "{opponent.name}使用了弓步后旋腿",
        "hit_msg": "击中了!",
        "blocker_msg": "没命中!"
    },
    "2": {
        "choices": 6,
        "threshold": 3,
        "hit_damage": 15,
        "block_damage": 5,
        "knockout_possible": True,
        "pre_msg": "{opponent.name}使出了伏步后旋腿...",
        "hit_msg": "命中了...",
        "blocker_msg": "但被格挡了!!!!!!!!!!!!!"
    },
    "3": {
        "choices": 80,
        "threshold": 40,
        "hit_damage": 20,
        "block_damage": 10,
        "pre_msg": "{opponent.name}召唤了超白龙",
        "hit_msg": "并且击中了!",
        "blocker_msg": "但被格挡了(幸运阻挡!)"
    },
    "4": {
        "choices": 8,
        "threshold": 4,
        "hit_damage": 40,
        "block_damage": 10,
        "pre_msg": "{opponent.name}召唤了天崩山",
        "hit_msg": "并且击中了!",
        "blocker_msg": "但被格挡了(幸运阻挡!)"
    }
}
with open('opponent-profileE.json', 'w')as file:
    json.dump(player_data,file,indent=4)